package com.cloudcc.mobile.view;

import com.lidroid.xutils.view.annotation.event.OnTouch;
import com.litesuits.android.log.Log;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.LinearLayout;

public class CustomScheduleListItem extends LinearLayout {

	private int mStart;
	private int mEnd;
	private int mResult;
	private int mUp = 0;
	private int down = 1, up = 2;

	public CustomScheduleListItem(Context context, AttributeSet attrs,
			int defStyleAttr, int defStyleRes) {
		super(context, attrs, defStyleAttr, defStyleRes);
		// TODO Auto-generated constructor stub
	}

	public CustomScheduleListItem(Context context, AttributeSet attrs,
			int defStyleAttr) {
		super(context, attrs, defStyleAttr);
		// TODO Auto-generated constructor stub
	}

	public CustomScheduleListItem(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}

	public CustomScheduleListItem(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}

	// @Override
	// public boolean onTouchEvent(MotionEvent event) {
	// super.onTouchEvent(event);
	// if(event.getAction() == MotionEvent.ACTION_DOWN){
	// Log.d("listviewitem", "ACTION_DOWN");
	// }
	// if(event.getAction() == MotionEvent.ACTION_MOVE){
	// Log.d("listviewitem", "ACTION_MOVE");
	// }
	// if(event.getAction() == MotionEvent.ACTION_UP){
	// Log.d("listviewitem", "ACTION_UP");
	// }
	//
	// return false;
	// }
	// @Override
	// public boolean dispatchTouchEvent(MotionEvent event) {
	// if (event.getAction() == MotionEvent.ACTION_DOWN) {
	// // 当手指按下的时候
	// Log.d("zuobiao","dispatchTouchEvent" );
	// if (event.getAction() == MotionEvent.ACTION_UP) {
	// // 当手指离开的时候
	// Log.d("zuobiao","111dispatchTouchEvent" );
	// return false;
	// }
	// }
	//
	//
	// return false;
	// }

	// @Override
	// public boolean onTouchEvent(MotionEvent event) {
	// // TODO Auto-generated method stub
	// getParent().getParent().requestDisallowInterceptTouchEvent(true);
	// switch (event.getAction()) {
	// case MotionEvent.ACTION_DOWN:
	// mStart = (int) event.getY();
	// Log.e("DOWN  ====   DOWN", "点击了"+mStart);
	// down = 3;
	// break;
	// case MotionEvent.ACTION_MOVE:
	// Log.e("MOVE  ====   MOVE", "滑动");
	// mEnd = (int) event.getY();
	// mResult = mEnd - mStart;
	// // getParent().getParent().requestDisallowInterceptTouchEvent(true);
	// break;
	// // break;
	// case MotionEvent.ACTION_UP:
	// mUp = (int) event.getY();
	// Log.e("UP  ====   UP", "离开了"+mUp);
	// up=3;
	// if (down==up) {
	// Log.e("UP  ====   UP", down+"=="+up);
	// return super.onTouchEvent(event);
	// }else if (down!=up){
	// Log.e("UP  ====   UP", down+"=="+up);
	// return false ;
	// }
	// }
	//
	// return super.onTouchEvent(event);
	//
	// }

}
